﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PresentationLayer.Presenters
{
    using WinFormsMvp;
    using PresentationLayer.Views.ViewContracts;

    public class CommonCatalogPresenter : Presenter<ICommonCatalogView>
    {
        public CommonCatalogPresenter(ICommonCatalogView view)
            : base(view)
        {
           // View.Binding += View_Binding;
         //   View.CloseFormClicked += View_CloseFormClicked;
            View.Load += View_Load;
        }

        private void View_CloseFormClicked(object sender, EventArgs e)
        {
            View.CloseForm();
        }

        private void View_Load(object sender, EventArgs e)
        {
            // View.Model = new MainViewModel();
        }

        //private void  View_Binding (object sender, EventArgs e)
        //{
        //    // View.Model = new MainViewModel();
        //}

    }
}
